<?php

namespace common\models\myhtsq;

use common\models\BaseModel;

/**
 * Description of InvoiceReceivableModel
 * 发票与应收款对应关系统一model
 * @author chenxc
 */
class InvoiceReceivableModel extends BaseModel {

    public $invoice_receivable_id;
    public $invoice_id;
    public $receivable_id;
    public $cur_billing_amount;
    public $created_on;
    public $created_by;
    public $modified_on;
    public $modified_by;

    public function __construct($config = array()) {
        parent::__construct($config);
    }

    public function rules() {
        return [
            [['cur_billing_amount'], 'number'],
            [['cur_billing_amount'], 'default', 'value' => 0],
            [['created_on', 'modified_on'], 'safe'],
            [['invoice_receivable_id', 'invoice_id', 'receivable_id', 'created_by', 'modified_by'], 'string', 'max' => 36]
        ];
    }

}
